package com.ruoyi.att.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.att.mapper.DmDevicesMapper;
import com.ruoyi.att.domain.DmDevices;
import com.ruoyi.att.service.IDmDevicesService;

/**
 * 设备Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-10-25
 */
@Service
public class DmDevicesServiceImpl implements IDmDevicesService 
{
    @Autowired
    private DmDevicesMapper dmDevicesMapper;

    /**
     * 查询设备
     * 
     * @param id 设备主键
     * @return 设备
     */
    @Override
    public DmDevices selectDmDevicesById(Long id)
    {
        return dmDevicesMapper.selectDmDevicesById(id);
    }

    /**
     * 查询设备列表
     * 
     * @param dmDevices 设备
     * @return 设备
     */
    @Override
    public List<DmDevices> selectDmDevicesList(DmDevices dmDevices)
    {
        return dmDevicesMapper.selectDmDevicesList(dmDevices);
    }

    /**
     * 新增设备
     * 
     * @param dmDevices 设备
     * @return 结果
     */
    @Override
    public int insertDmDevices(DmDevices dmDevices)
    {
        return dmDevicesMapper.insertDmDevices(dmDevices);
    }

    /**
     * 修改设备
     * 
     * @param dmDevices 设备
     * @return 结果
     */
    @Override
    public int updateDmDevices(DmDevices dmDevices)
    {
        return dmDevicesMapper.updateDmDevices(dmDevices);
    }

    /**
     * 批量删除设备
     * 
     * @param ids 需要删除的设备主键
     * @return 结果
     */
    @Override
    public int deleteDmDevicesByIds(Long[] ids)
    {
        return dmDevicesMapper.deleteDmDevicesByIds(ids);
    }

    /**
     * 删除设备信息
     * 
     * @param id 设备主键
     * @return 结果
     */
    @Override
    public int deleteDmDevicesById(Long id)
    {
        return dmDevicesMapper.deleteDmDevicesById(id);
    }
}
